ICheckout
interface, implemented by Checkout
, exposes a few helpful methods and events.
Step[]
these are used to generate transactions that, when submitted, perform the desired action.
OnTransactionStepsReturn
and OnTransactionStepsError
events to handle the responses elsewhere.
GenerateBuyTransaction
is used to buy a specified amount of a given collectible in the provided Order[]
/listingsGenerateSellTransaction
is used to sell a specified amount for a given collectible in the provided Order[]
/offersGenerateListingTransaction
is used to create a new listing for a given collectible, amount, and price.GenerateOfferTransaction
is used to create a new offer for a given collectible, amount, and price.GenerateCancelTransaction
is used to cancel an existing order created by the user.